// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'workmanshipid',
        footer: "Foots",
        cnName: '工艺路线',
        name: 'ysl_workmanship',
        url: "/ysl_workmanship/",
        sortName: "workmanshipid"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"workmanshipid":"","workmanship_name":"","preview":"","workmanship_type":"","statues":"","workmanship_desc":"","createtor":"","createtime":"","updator":"","updatetime":"","file1":"","file2":"","file3":"","file4":"","file5":""};
    const editFormOptions = [[{"title":"工艺id","required":true,"field":"workmanshipid","disabled":true,"type":"number"}],
                              [{"title":"工艺名称","required":true,"field":"workmanship_name"}],
                              [{"title":"预览图","field":"preview"}],
                              [{"dataKey":"工单类型(正,异)","data":[],"title":"类型","field":"workmanship_type","type":"select"}],
                              [{"dataKey":"工单类型(正,异)","data":[],"title":"状态","field":"statues","type":"select"}],
                              [{"title":"描述","field":"workmanship_desc","type":"textarea"}],
                              [{"title":"创建人","field":"createtor"}],
                              [{"title":"创建时间","field":"createtime","type":"date"}],
                              [{"title":"修改人","field":"updator"}],
                              [{"title":"修改时间","field":"updatetime","type":"date"}],
                              [{"title":"备用字段1","field":"file1"}],
                              [{"title":"备用字段2","field":"file2"}],
                              [{"title":"备用字段3","field":"file3"}],
                              [{"title":"备用字段4","field":"file4"}],
                              [{"title":"备用字段5","field":"file5"}]];
    const searchFormFields = {"workmanship_name":"","statues":""};
    const searchFormOptions = [[{"title":"工艺名称","field":"workmanship_name","type":"like"}],[{"dataKey":"工单类型(正,异)","data":[],"title":"状态","field":"statues","type":"select"}]];
    const columns = [{field:'workmanshipid',title:'工艺id',type:'bigint',sort:true,width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'workmanship_name',title:'工艺名称',type:'string',width:180,require:true,align:'left'},
                       {field:'preview',title:'预览图',type:'string',width:180,align:'left'},
                       {field:'workmanship_type',title:'类型',type:'string',bind:{ key:'工单类型(正,异)',data:[]},width:180,align:'left'},
                       {field:'statues',title:'状态',type:'int',bind:{ key:'工单类型(正,异)',data:[]},width:110,align:'left'},
                       {field:'workmanship_desc',title:'描述',type:'string',width:180,align:'left'},
                       {field:'createtor',title:'创建人',type:'string',width:180,align:'left'},
                       {field:'createtime',title:'创建时间',type:'datetime',width:150,align:'left'},
                       {field:'updator',title:'修改人',type:'string',width:180,align:'left'},
                       {field:'updatetime',title:'修改时间',type:'datetime',width:150,align:'left'},
                       {field:'file1',title:'备用字段1',type:'string',width:180,hidden:true,align:'left'},
                       {field:'file2',title:'备用字段2',type:'string',width:180,hidden:true,align:'left'},
                       {field:'file3',title:'备用字段3',type:'string',width:180,hidden:true,align:'left'},
                       {field:'file4',title:'备用字段4',type:'string',width:180,hidden:true,align:'left'},
                       {field:'file5',title:'备用字段5',type:'string',width:180,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}